自动导入包(@AutoConfigurationPackage)

Exisi 2022-09-28 15:14:34
Categories: Tags:

 

示例

@Target(ElementType.TYPE)

@Retention(RetentionPolicy.RUNTIME)

@Documented

@Inherited

@AutoConfigurationPackage

@Import(AutoConfigurationImportSelector.class)

public @interface EnableAutoConfiguration {

    ...

}